package net.zhengxinyun.performance.filter;


import net.zhengxinyun.performance.App.dto.report.FileDTO;
import net.zhengxinyun.performance.Util.StringUtils;
import net.zhengxinyun.performance.api.entity.SysFile;
import net.zhengxinyun.performance.core.PaginationQuery;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Auther: hyp
 * @Date: 2018/11/4 14:55
 */
public class IncentiveFilter extends PaginationQuery {

    private Long id;

    private Date gmtCreate ;

    private Date gmtModified ;

    private String incentive;
    private String departCode;
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.recognition_unit
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String recognitionUnit;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.commended_unit
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String commendedUnit;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.file_id
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String fileId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.points_type
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String pointsType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.point
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String point;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.audit
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String audit;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.reason
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String reason;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.file_name
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String fileName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.date_time
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String dateTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column inv_incentive.month_time
     *
     * @mbg.generated Mon Dec 03 17:12:02 CST 2018
     */
    private String monthTime;

    private String num;
    private String table;

    private String  otherFileId;

    private Long typeItemId;

    private String typeName;
    private String itemName;
    private String typeClass;
    private String  department;
    private String userPhone;
    private Long typeId;
    private String optionType;

    private List<FileDTO> filelists;

    public List<FileDTO> getFilelists() {
        return filelists;
    }

    public void setFilelists(List<FileDTO> filelists) {
        this.filelists = filelists;
    }



    public String getOptionType() {
        return optionType;
    }

    public void setOptionType(String optionType) {
        this.optionType = optionType;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public double getDoublePoint()
    {

        return StringUtils.isBlank(point) ? 0 : Double.parseDouble(point);
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTypeClass() {
        return typeClass;
    }

    public void setTypeClass(String typeClass) {
        this.typeClass = typeClass;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getTypeItemId() {
        return typeItemId;
    }

    public void setTypeItemId(Long typeItemId) {
        this.typeItemId = typeItemId;
    }

    public String getOtherFileId() {
        return otherFileId;
    }

    public void setOtherFileId(String otherFileId) {
        this.otherFileId = otherFileId;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public String getDepartCode() {
        return departCode;
    }

    public void setDepartCode(String departCode) {
        this.departCode = departCode;
    }

    private List<Map<String,Object>> fileList;

    public List<Map<String, Object>> getFileList() {
        return fileList;
    }

    public void setFileList(List<Map<String, Object>> fileList) {
        this.fileList = fileList;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getIncentive() {
        return incentive;
    }

    public void setIncentive(String incentive) {
        this.incentive = incentive;
    }

    public String getRecognitionUnit() {
        return recognitionUnit;
    }

    public void setRecognitionUnit(String recognitionUnit) {
        this.recognitionUnit = recognitionUnit;
    }

    public String getCommendedUnit() {
        return commendedUnit;
    }

    public void setCommendedUnit(String commendedUnit) {
        this.commendedUnit = commendedUnit;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getPointsType() {
        return pointsType;
    }

    public void setPointsType(String pointsType) {
        this.pointsType = pointsType;
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public String getAudit() {
        return audit;
    }

    public void setAudit(String audit) {
        this.audit = audit;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public String getMonthTime() {
        return monthTime;
    }

    public void setMonthTime(String monthTime) {
        this.monthTime = monthTime;
    }
}
